package com.zs.blog.util;

/**
 * @Title: ThreadLocalUtil
 * @Author zs
 * @Package com.zs.blog.util
 * @Date 2025/4/21 19:05
 * @description: ThreadLocal工具类
 */
@SuppressWarnings("all")
public class ThreadLocalUtil {
    private static final ThreadLocal THREAD_LOCAL = new ThreadLocal();

    public static <T> T get() {
        return (T) THREAD_LOCAL.get();
    }

    public static <T> void set(T value) {
        THREAD_LOCAL.set(value);
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }

}
